import request from "../utils/request";
const API={
    REGISTER_URL:'auth/local/register',
    LOGIN_URL:'auth/local',
}
//用户相关api
//注册api
// { username, password, email }
export const reqRegisterUser=(data)=>request.post(API.REGISTER_URL,data)
//登录api
// {identifier:username/email, password:password}
export const reqLogin=(data)=>request.post(API.LOGIN_URL,data)